package com.zw.chat.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ChatConfig {

    // 只能对话 所有语言大模型通用
    @Bean
    public ChatClient chatClient(ChatClient.Builder builder) {
        return builder
                // 全局默认系统提示词
                .defaultSystem("你是一个讲笑话的AI助手！")
                .build();
    }
}
